package com.bacon.gmall.order;

import com.bacon.gmall.common.interceptor.FeignInterceptor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author： bacon、
 * @version： 1.0
 * @create： 2021-01-06 13:12
 * @description:
 */
@SpringBootApplication
@EnableFeignClients(basePackages = "com.bacon.gmall")
@EnableDiscoveryClient
@ComponentScan(basePackages = "com.bacon.gmall")
public class ServiceOrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceOrderApplication.class, args);
    }


    @Bean
    public FeignInterceptor feignInterceptor() {
        return new FeignInterceptor();
    }
}
